trigger AccountTrigger on Account(after insert,after update,before insert) {
    new Triggers()
    // 客户名重名check
    //bind(Triggers.Evt.beforeinsert, new AccCheckDuplicateHandler())
    // 新建客户自动带出科室和联系人
    .bind(Triggers.Evt.afterinsert, new AccSetDefaultDeptAndContactHandler())
    // 客户名称修改后，修改其下的科室名称
    .bind(Triggers.Evt.afterupdate, new AccUpdateDeptNameHandler())
    //bind(Triggers.Evt.afterinsert, new AccountContactHandler())
    .manage();


    /*if(Trigger.isBefore && Trigger.isInsert){
    	Id DealerAbroad = Utils.getRecordTypeIdByDevNameAndObjName('DealerAbroad', 'Account');
    	Id PublicRelationshipAbroad = Utils.getRecordTypeIdByDevNameAndObjName('PublicRelationshipAbroad', 'Account');

    	Id TerminalCustomerAbroad = Utils.getRecordTypeIdByDevNameAndObjName('TerminalCustomerAbroad', 'Account');
    	for (Account acc : Trigger.new ) {
    		if(acc.CustomerRecordTypeText__c == 'DealerAbroad'			 ){
    			acc.RecordTypeId = DealerAbroad;
    		}else if( acc.CustomerRecordTypeText__c == 'PublicRelationshipAbroad'){
    			acc.RecordTypeId = PublicRelationshipAbroad;
    		}else if( acc.CustomerRecordTypeText__c == 'TerminalCustomerAbroad' ){
    			acc.RecordTypeId = TerminalCustomerAbroad;
    		}
    	}
    }*/
}